﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.WindowsAzure.StorageClient;

namespace LCA.Community.DAL.Model
{
    /// <summary>
    /// This class represents a hospital
    /// 
    /// RowKey = Id of the hospital
    /// PartitionKey = Id of the hospital
    /// </summary>
    public class Hospital : BasicDataModel
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Hospital"/> class.
        /// </summary>
        public Hospital()
        {

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="Hospital"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="url">The URL.</param>
        /// <param name="address">The address.</param>
        /// <param name="city">The city.</param>
        /// <param name="country">The country.</param>
        public Hospital(String name, String url, String address, String city, String country)
        {
            this.RowKey = Guid.NewGuid().ToString();
            this.PartitionKey = this.RowKey;
            this.Name = name;
            this.Url = url;
            this.Address = address;
            this.City = city;
            this.Country = country;
        }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public String Name { get; set; }
        /// <summary>
        /// Gets or sets the URL.
        /// </summary>
        /// <value>The URL.</value>
        public String Url { get; set; }
        /// <summary>
        /// Gets or sets the address.
        /// </summary>
        /// <value>The address.</value>
        public String Address { get; set; }
        /// <summary>
        /// Gets or sets the city.
        /// </summary>
        /// <value>The city.</value>
        public String City { get; set; }
        /// <summary>
        /// Gets or sets the country.
        /// </summary>
        /// <value>The country.</value>
        public String Country { get; set; }
    }
}
